package com.vaadin.demo;

import javax.servlet.annotation.WebServlet;

import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.demo.addressbook.AddressBookView;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.UI;

public class DemoUI extends UI {
    @WebServlet(value = { "/demo/*", "/VAADIN/*" }, asyncSupported = true)
    @VaadinServletConfiguration(productionMode = false, ui = DemoUI.class, widgetset = "com.vaadin.demo.AppWidgetSet")
    public static class Servlets extends VaadinServlet {
    }

    //
    // static {
    // DemoDataGenerator.create();
    // }

    @Override
    protected void init(VaadinRequest request) {
        // setContent(new AddressBookMainView());
        // setContent(new MyView());
        setContent(new AddressBookView());
    }
}
